home *** CD-ROM | disk | FTP | other *** search
- % This sample shows how to
- % - create a float-object with complete range checking and default value
- % - create an additional object action. The "D" edit type implies editing
- % a Double float number. After that, the macro "/xw/x/xbwstop.mta" is
- % executed; this feature belongs to the VAR-Element "rqK"
- % (Read-after-displaying-object-Queue-Macro)
-
-
- Malloc(90);
- @xbwstart(("range") ("bw") );
- wdw(TEST 3 4 27 7 StandardWDW);
- @window/gimmicks(TEST (" Range for floats") );
-
- o(TEST01 D D 1 3 23 1 Standard);
- bg(TEST01 . 10 );
- ff( ("%12.7f") ("[1/10N]") 10 ); % Display in 1/10[N]
- d(M 1000.0 ); % Max: 1000[N]
- d(v 500.0 ); % Default: 500[N]
- d(m 1.0 ); % Min: 1[N] (= 10/10[N])
- cn( raK ("@xbwstop();") ); % After Edit: Macro to stop XbW
- eg();
-
- Message(("Project complete."));
- End();
-
-